/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/views/layout/Layout'
import i18n from '@/lang/index'

const areaRouter = {
  path: '/adminh5/areamanage',
  component: Layout,
  redirect: '',
  name: 'area',
  alwaysShow: true,
  meta: {
    title: i18n.t('Regions'),
    icon: 'international'
  },
  children: [
    {
      path: 'area',
      component: () => import('@/views/adminh5/areamanage/area/list'),
      name: 'CountryList',
      meta: { title: i18n.t('Countries'), icon: 'list' }
    },
    {
      path: 'area-region',
      component: () => import('@/views/adminh5/areamanage/arearegion'),
      name: 'AreaRegion',
      meta: { title: i18n.t('Districts'), icon: 'list' }
    },
    {
      path: 'location',
      component: () => import('@/views/adminh5/areamanage/location'),
      name: 'Location',
      meta: { title: i18n.t('Locations'), icon: 'list' }
    },
    {
      path: 'locationcategory',
      component: () => import('@/views/adminh5/areamanage/locationcategory/list'),
      name: 'locationcategory',
      meta: { title: i18n.t('StoreTypes'), icon: 'list' }
    }
  ]
}
export default areaRouter
